//package com.example.cslp.cotroller;
//
//import com.alibaba.fastjson.JSON;
//import com.alibaba.fastjson.JSONObject;
//import com.aliyun.oss.OSSClient;
//import com.aliyuncs.DefaultAcsClient;
//import com.aliyuncs.vod.model.v20170321.CreateUploadVideoResponse;
//import com.aliyuncs.vod.model.v20170321.GetMezzanineInfoResponse;
//import com.example.cslp.enums.FileUseEnum;
//import com.example.cslp.pojo.DTO.FileDto;
////import com.example.cslp.service.Impl.FileService;
//import com.example.cslp.service.IFileService;
////import com.example.cslp.util.Base64ToMultipartFile;
//import com.example.cslp.util.VodUtil;
//import com.example.cslp.web.JsonResult;
//import lombok.extern.slf4j.Slf4j;
//import org.apache.commons.codec.binary.Base64;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.web.bind.annotation.*;
//import org.springframework.web.multipart.MultipartFile;
//
//import javax.annotation.Resource;
//import java.io.*;
//import java.util.Map;
//import java.util.UUID;
//
////@Slf4j
//@RestController
//@RequestMapping("/admin")
//public class VodController {
//
//    /**
//     * 临时文件路径前缀
//     */
//
//    private static final String accessKeyId="LTAI5tPcMqckKGRwQZTAWVTU";
//    private static final String accessKeySecret="3jPwejy0f0uV1EfgISEPA11b9vr81Q";
//
//
//    @Autowired
//    private IFileService iFileService;
//    @PostMapping("/vod")
//    public JsonResult fileUpload(@RequestParam("file") MultipartFile multipartFile) throws Exception {
//        iFileService.upload(multipartFile);
//        System.out.println(multipartFile);
//        return JsonResult.ok("上传视频成功");
//    }
//}
